<script>
    var reg = /\d+/;
    var str = '23423424234234234';
    var arr = str.match(reg);
    console.log('arr', arr);

    var reg2 = /\d+?/;
    var arr2 = str.match(reg2);
    console.log('arr2', arr2);
</script>